package com.xuecheng.manage_cms.controller;

import com.xuecheng.api.cms.Sys_dictionaryControlllerApi;
import com.xuecheng.framework.domain.system.SysDictionary;
import com.xuecheng.manage_cms.service.Sys_dictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys/dictionary")
///sys/dictionary/get/
public class Sys_dictionaryControlller implements Sys_dictionaryControlllerApi {
    @Autowired
    Sys_dictionaryService sys_dictionaryService;
    @GetMapping("/get/{dType}")
    @Override
    public SysDictionary findByDtype(@PathVariable("dType") String dType) {

        return sys_dictionaryService.findByDtype(dType);
    }
}
